home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 950 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  2. Path: netcom.com!tgl
  3. From: tgl@netcom.com (Tom Lane)
  4. Subject: Re: IJG JPEG Engine and Win32
  5. Message-ID: <TGL.96Jan8083559@netcom23.netcom.com>
  6. Sender: tgl@netcom23.netcom.com
  7. Organization: Netcom Online Communications Services
  8. References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com>
  9.     <TGL.96Jan5065424@netcom21.netcom.com>
  10.     <4cpn1r$gm0@redstone.interpath.net>
  11. Date: Mon, 8 Jan 1996 16:35:59 GMT
  12.  
  13. fortunat@interpath.com (Jumpstile Turner) writes:
  14. > Checking the cinfo structure after it comes 
  15. > back from jpeg_read_header shows that cinfo.image_width and 
  16. > cinfo.image_height are correct, however almost every field with  
  17. > "output_xxxx" is way off, either 1, 0, or some rediculous number 
  18. > like 7988774.
  19.  
  20. Then you've still got a problem with sizeof(boolean), I'd bet,
  21. or else a structure packing rule (#pragma pack).  Are you sure
  22. you recompiled everything affected by the header files you changed?
  23.  
  24. It might help to #include jpeglib.h *before* including any Windows-
  25. specific headers... if one of their headers is leaving #pragma pack
  26. in a nondefault state, that could cause this problem.
  27.  
  28.             regards, tom lane
  29.             organizer, Independent JPEG Group
  30.